﻿namespace Agile.Service.Admin.Model.ViewModel.Sys;

public class QuerySysDepartmentResponse
{
    ///<summary>部门ID</summary>
    public long DepartmentID { get; set; }

    ///<summary>父级部门ID,顶级为-1</summary>
    public long ParentDepartmentID { get; set; }

    ///<summary>部门名称</summary>
    public string DepartmentName { get; set; }

    ///<summary>部门代码</summary>
    public string DepartmentCode { get; set; }

    ///<summary>部门负责人</summary>
    public long ManagerID { get; set; } 

    ///<summary>备注</summary>
    public string Remark { get; set; }

    ///<summary>是否启用</summary>
    public bool Enabled { get; set; }

    ///<summary>创建时间</summary>
    public DateTime CreateTime { get; set; }

    public List<QuerySysDepartmentResponse> Children { get; set; }
}

public class QueryTreeTopResponse
{
    ///<summary>单位ID</summary>
    public long DepartmentID { get; set; }

    ///<summary>父级单位ID,顶级为-1</summary>
    public long ParentDepartmentID { get; set; }

    ///<summary>单位名称</summary>
    public string DepartmentName { get; set; }

    ///<summary>单位代码</summary>
    public string DepartmentCode { get; set; }

    public List<QueryTreeTopResponse> Children { get; set; }
}

public class QueryDepartmentTreeResponse
{
    ///<summary>单位ID</summary>
    public long DepartmentID { get; set; }

    ///<summary>单位名称</summary>
    public string DepartmentName { get; set; }
}

